// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__9BFA2826_B44E_459F_AAAF_E67B28867635__INCLUDED_)
#define AFX_STDAFX_H__9BFA2826_B44E_459F_AAAF_E67B28867635__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#define _CRT_SECURE_NO_WARNINGS

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT


#ifndef _MySafeDelete_
#define _MySafeDelete_

#define MySafeDelete(x)     if(NULL != x){           \
	delete x;     \
x = NULL;}

#define MySafeDeleteMAB(x)  if(NULL != x){           \
	delete[] x;   \
x = NULL;}

#define MySafeRelease(x)    if(NULL != x){           \
	x->Release();  \
x = NULL;}

#define MySafeCloseHandle(x) if(NULL != x){            \
	CloseHandle(x);  \
x = NULL;}

#endif

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__9BFA2826_B44E_459F_AAAF_E67B28867635__INCLUDED_)
